<?php 
$arrDeals = Yii::app()->session["arrDeals"];
if(!empty($arrDeals)): 
	$num = round(count($arrDeals) / 2);
	$arrLeft = array_slice($arrDeals, 0, $num);
	$arrRight = array_slice($arrDeals, $num);	
?>
<div class="each_subMenu col-xs-6">
	<?php foreach ($arrLeft as $R): ?>
    <a href="/deals/<?php echo $R['category_id']; ?>"><?php echo $R['category_name']; ?></a>
    <?php endforeach; ?>
</div>        
<div class="each_subMenu col-xs-6">
    <?php foreach ($arrRight as $R): ?>
    <a href="/deals/<?php echo $R['category_id']; ?>"><?php echo $R['category_name']; ?></a>
    <?php endforeach; ?>
</div>
<?php endif; ?>